<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>


</head>
<body>
<div id="app">
    <ul>
        <li v-for="(book, index) in books">{{index}} : {{book}}</li>
    </ul>
    <ul>
        <li v-for="(value, name, index) in author">{{index}} : {{name}} : {{value}}</li>
    </ul>
</div>


<script>
    let app = new Vue({
    el: "#app",
    data: {
        books: ["三国演示", "残唐五代史演义"],
        author: {
            name: "罗贯中",
            age: "70"
        }
    }
});
</script>

</body>
</html>
